"""gx_app URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path
from app02.views import account,index,teacher,student,admins

urlpatterns = [
    # path('admin/', admin.site.urls),

    # # 登录
    path('account/login/', account.login_list),
    path('image/code/', account.image_code),
    # 注册
    path('account/sign/', account.sign_list),
    #注销
    path('logout/',account.account_logout),

    #未登录首页
    path('index/list/',index.index_list),
    #个人资料
    path('index/profile/',index.index_profile),


    #学生路由
    #学生首页
    path('student/list/',student.student_list),
    #课表路由
    path('student/course/',student.student_course),
    #学生请假
    path('student/leave/list/',student.student_leave),
    path('student/leave/add/',student.student_leaveAdd),
    path('student/leave/reporting/',student.student_reporting),
    path('student/leave/reportingGET/',student.student_LeaveReporting),
    path('student/leave/delete/',student.student_delete),
    #学生成绩管理
    path('student/score/list/',student.student_Score),
    #教学评价信息
    path('student/rmation/list/',student.student_Rmationlist),
    path('student/rmation/add/',student.student_RmationAdd),

    #教师路由
    path('teacher/list/',teacher.teacher_list),
    #课程管理
    path('teacher/course/',teacher.teacher_course),
    path("teacher/editGET/course/",teacher.teacher_EditGET),
    path("teacher/edit/course/",teacher.teacher_EditCourse),
    path('teacher/delete/course/',teacher.teacher_delete),
    #班级管理
    path('teacher/classinfo/list/',teacher.teacher_classinfo),
    path('teacher/calssinfo/add/',teacher.teacher_addClassInfo),
    path("teacher/classinfo/editGET/",teacher.teacher_ClassInfoEditGET),
    path("teacher/classinfo/edit/",teacher.teacher_EditClassInfo),
    path('teacher/classinfo/delete/',teacher.teacher_deleteClassInfo),
    ### 请假管理
    #学生请假路由
    path('teacher/leave/studentLeave/',teacher.teacher_StudentLeave),
    path('teacher/leave/EditLeave/',teacher.teacher_StudentLeaveEditGET),
    path('teacher/leave/edit/',teacher.teacher_studentedit),
    #教师请假
    path('teacher/leave/list/',teacher.teacher_leave),
    path('teacher/leave/add/',teacher.teacher_leaveAdd),
    path('teacher/leave/reporting/',teacher.teacher_reporting),
    path('teacher/leave/reportingGET/',teacher.teacher_LeaveReporting),
    path('teacher/leave/delete/',teacher.teacher_deleteLeave),
    #成绩管理
    path('teacher/score/list/',teacher.teacher_StudentScore),
    path('teacher/score/add/',teacher.teacher_StudentScoreAdd),
    path('teacher/score/StudentScore/',teacher.teacher_StudentScoreEdit),
    path('teacher/score/StudentScoreGET/',teacher.teacher_StudentScoreGET),
    path('teacher/score/delete/',teacher.teacher_StudentScoreDelete),
    #教学评价信息审核管理
    path('teacher/rmation/list/', teacher.teacher_Rmationlist),
    path('teacher/rmation/add/', teacher.teacher_RmationAdd),
    path('teacher/rmation/StudentRmation/', teacher.teacher_RmationEdit),
    path('teacher/rmation/StudentRmationGET/', teacher.teacher_RmationGET),
    path('teacher/rmation/Rmationdelete/', teacher.teacher_RmationDelete),



    #管理员路由
    path('admins/list/',admins.admins_list),
    #管理员课表管理
    path('admin/course/',admins.admins_course),
    path('admin/add/course/',admins.admins_addCourse),
    path("admin/editGET/course/",admins.admins_EditGET),
    path("admin/edit/course/", admins.admins_EditCourse),
    path('admin/delete/course/', admins.admins_delete),
    #学生信息管理
    path('admin/student/list/',admins.admins_studentList),
    path('admin/student/add/',admins.admins_studentAdd),
    path('admin/student/editGET/',admins.admins_studentEditGET),
    path('admin/student/edit/',admins.admins_studentEdit),
    path('admin/student/delete/',admins.admins_studentDelete),
    # 教师信息管理
    path('admin/teacher/list/', admins.admins_teacherList),
    path('admin/teacher/add/', admins.admins_teacherAdd),
    path('admin/teacher/editGET/', admins.admins_teacherEditGET),
    path('admin/teacher/edit/', admins.admins_teacherEdit),
    path('admin/teacher/delete/', admins.admins_teacherDelete),
    # 管理员信息管理
    path('admin/Admins/list/', admins.admins_AdminsList),
    path('admin/Admins/add/', admins.admins_AdminsAdd),
    path('admin/Admins/editGET/', admins.admins_AdminsEditGET),
    path('admin/Admins/edit/', admins.admins_AdminsEdit),
    path('admin/Admins/delete/', admins.admins_AdminsDelete),
    #请假管理
    #学生请假管理
    path('admin/Studentleave/list/',admins.admins_StudentLeave),
    path('admin/Studentleave/add/',admins.admins_StudentLeaveAdd),
    path('admin/Studentleave/reporting/',admins.admins_StudentLeaveReporting),
    path('admin/Studentleave/reportingGET/',admins.admins_StudentreportingGET),
    path('admin/Studentleave/delete/',admins.admins_StudentDelete),
    #教师请假管理
    path('admin/Teacherleave/list/',admins.admins_TeacherLeave),
    path('admin/Teacherleave/add/',admins.admins_TeacherLeaveAdd),
    path('admin/Teacherleave/reporting/',admins.admins_TeacherLeaveReporting),
    path('admin/Teacherleave/reportingGET/',admins.admins_reportingGET),
    path('admin/Teacherleave/delete/',admins.admins_TeacherDelete),

    #教学评价信息管理
    path('admin/rmation/Adminlist/', admins.admin_AdminRmationlist),
    path('admin/rmation/adminRmation/', admins.admin_RmationEdit),
    path('admin/rmation/adminRmationGET/', admins.admin_RmationGET),
    path('admin/rmation/adminRmationdelete/', admins.admin_RmationDelete),
]
